.login-container {
    height: calc(100% - 50px);
    display: flex;
    justify-content: center; /*垂直居中*/
    align-items: center; /*水平居中*/
}

.login-dialog {
    width: 400px;
    height: 400px;
    background-color: rgba(255,255,255,0.3); /*透明度*/
    border-radius: 10px;
}

/*设置标题*/
.login-dialog h3 {
    text-align: center; /*文本域居中*/
    padding: 50px 0;
}

/*针对一行设置样式*/

.login-dialog .row {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-dialog .row span {
    width: 100px;
    font-weight: 700;
}

#username, #password {
    width: 200px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    padding-left: 10px;
    border: none;
    outline: none;
    border-radius: 10px;
}

#submit {
    width: 300px;
    height: 50px;
    background-color: rgb(0,128,0);
    color: white;
    border: none;
    outline: none;
    border-radius: 10px;

    margin-top: 40px;
}
#register {
    width: 300px;
    height: 50px;
    background-color: rgb(0,128,0);
    color: white;
    border: none;
    outline: none;
    border-radius: 10px;
    margin-top: 50px;
}
#register:hover {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgb(102, 0, 255);
}

#submit:active {
    background-color: red;
}
#submit:hover {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgb(102, 0, 255);
}

#login {
    width: 300px;
    height: 50px;
    background-color: rgb(0,128,0);
    color: white;
    border: none;
    outline: none;
    border-radius: 10px;
    margin-top: 50px;
}
#login:hover {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgb(102, 0, 255);
}
















